package com.example.androidstart.homepage.item;

import static com.example.androidstart.homepage.ItemType.GOOD_ITEM_TYPE;

import com.example.androidstart.homepage.ItemInfo;
import com.example.androidstart.homepage.bean.GoodsInfoBean;

public class GoodsItemInfo implements ItemInfo<GoodsInfoBean> {

    private final GoodsInfoBean mGoodsInfoBean;

    public GoodsItemInfo(GoodsInfoBean goodsInfoBean) {
        mGoodsInfoBean = goodsInfoBean;
    }

    @Override
    public GoodsInfoBean getItemInfo() {
        return mGoodsInfoBean;
    }

    @Override
    public int getType() {
        return GOOD_ITEM_TYPE;
    }
}
